<?php //echo json_encode(array($type,$items));?>

<div class = "well">
<h3>Search for <?php foreach ($kw_arr as $k):?>
	<span class = "label" style = "font-size:20px;line-height:25px;"><?php echo $k?>
	</span> <?php endforeach;?></h3>
</div>

<ul class="nav nav-tabs">
  <li <?php if ($type=='blog'):?>class = "active"<?php endif;?>>
  	<a href="?t=blog&q=<?php echo $keywords?>">Blog</a></li>
  <li <?php if ($type=='user'):?>class = "active"<?php endif;?>>
  	<a href="?t=user&q=<?php echo $keywords?>">User</a></li>
  <li <?php if ($type=='feed'):?>class = "active"<?php endif;?>>
  	<a href="?t=feed&q=<?php echo $keywords?>">Feed</a></li>
</ul>

<?php if (count($items)>0):?>
<?php foreach ($items as $i):?>
<?php $this->load->view('search/item_'.$type,$i);?>
<?php endforeach;?>
<?php else :?>
<i class = "icon-search"></i>Sorry! No reasult found!
<?php endif;?>

<hr/>